﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="listnews.ascx.cs" Inherits="control_client_listnews" %>
<%@ Register TagPrefix="pager" Namespace="SiteUtils" Assembly="CollectionPager"%>
<div class="blog">
<div class="slide-vstech">
            <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="500" height="200" id="Object6" align="middle" >
                <param name="movie" value="download/media/swf/desktop_vsc.swf" />
                <param name="quality" value="high" />
                <param name="allowFullScreen" value="true" />
                <param name="wmode" value="transparent" />
                <param name="allowScriptAccess" value="always" />
                <param name="_flashcreator" value="http://www.photo-flash-maker.com" />
                <param name="_flashhost" value="http://www.go2album.com" />
                <embed src="download/media/swf/desktop_vsc.swf" width="500" height="200" quality="high" allowFullScreen="true" wmode="transparent" allowScriptAccess="always" name="tech" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
            </object>
        </div><br />         
 <div style="border:1px solid #E6E6E6">
    <asp:DataList ID="list" runat="server" style="margin-right: 575px" Width="100%" 
        DataKeyField="Id" ShowFooter="False" ShowHeader="False">
        <ItemTemplate>
            <div class="leading">
                <h2 class="contentheading">
                    <asp:HyperLink ID="title" runat="server" CssClass="contentpagetitle" 
                        NavigateUrl='<%# "../WebSite/DetailNews.aspx?key=" + Eval("Id") %>' 
                        Text='<%# Eval("TieuDe") %>'></asp:HyperLink>
	            </h2>
                    <p class="iteminfo">
		                <span class="createdby">	        
		                    Đăng bởi <asp:Label ID="author" runat="server" Text='<%# Eval("TenDangNhap") %>' />
		                    <asp:Label ID="date" runat="server" Text='<%# Eval("NgayDang", "{0:dd/MM/yyyy}") %>' />
		                </span>
	                </p>
                <div class="introtext">
                    <img src='<%# "images/news/content/" + Eval("HinhAnh") %>' alt="" border="0" height="110" width="170">
                        <asp:Label ID="summary" runat="server" Text='<%# Eval("TomTat") %>'></asp:Label>                        
                    <br />
                    <a class="readon" style="margin-left:200px" href='<%# "../WebSite/DetailNews.aspx?key=" + Eval("Id") %>'>Chi tiết »</a>
                    <hr /><br />      
                </div>            
	        </div>        
        </ItemTemplate>
    </asp:DataList>
     <center>
                <table cellpadding="0" border="0" id="PhanTrang" runat ="server">
                    <tr>
                        <td align="right">
                            <asp:LinkButton ID="lbtnFirst" runat="server" CausesValidation="false" OnClick="lbtnFirst_Click">Trang đầu</asp:LinkButton>&nbsp;
                        </td>
                        <td align="right">
                            <asp:LinkButton ID="lbtnPrevious" runat="server" CausesValidation="false" OnClick="lbtnPrevious_Click">Trang trước</asp:LinkButton>&nbsp;&nbsp;</td>
                        <td align="center" valign="middle">
                            <asp:DataList ID="dlPaging" runat="server" RepeatDirection="Horizontal" OnItemCommand="dlPaging_ItemCommand"
                                OnItemDataBound="dlPaging_ItemDataBound">
                                <ItemTemplate>
                                    <asp:LinkButton ID="lnkbtnPaging" runat="server" CommandArgument='<%# Eval("PageIndex") %>'
                                        CommandName="Paging" Text='<%# Eval("PageText") %>'></asp:LinkButton>&nbsp;
                                </ItemTemplate>
                            </asp:DataList>
                        </td>
                        <td align="left">&nbsp;&nbsp;
                            <asp:LinkButton ID="lbtnNext" runat="server" CausesValidation="false"
                                OnClick="lbtnNext_Click">Trang tiếp</asp:LinkButton></td>
                        <td align="left">&nbsp;
                            <asp:LinkButton ID="lbtnLast" runat="server" CausesValidation="false" OnClick="lbtnLast_Click">Trang cuối</asp:LinkButton>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="5" align="center" style="height: 30px" valign="middle">
                            <asp:Label ID="lblPageInfo" runat="server" Visible="False"></asp:Label>
                        </td>
                    </tr>
                </table>
       
    </center>
 </div>   
</div>
